//查看信件工单详情
function detail(id) {
    var wfId = '';
    if (id === '') {
        let row = $("#bootstrap-table").bootstrapTable('getSelections');
        var wfId = row[0].WfId;
    }else{
        wfId = id;
    }
    if (wfId) {
        var url = "/system/report/mail/mailOrderDetail/"+wfId;
        var title = "信件工单详情";
        // $.modal.openDialog(title, url,'78%','80%');
        var options = {
            url: url,
            title: title,
            width: '78%',
            height: '80%',
            skin: 'layui-layer-gray',
            btn: ['关闭'],
            yes: function (index, layero) {
                $.modal.close(index);
            }
        }
        $.modal.openOptions(options);
    }
}